﻿<Window x:Class="XAMLSimpleBinding.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <StackPanel>
        <TextBlock Text="Use the slider to change the fontsize" Height="80" FontSize="{Binding ElementName=LabelFontSize, Path=Content}"/>
        <Label x:Name="LabelFontSize" Height="40" Width="60" Content="{Binding ElementName=SliderFontSize, Path=Value}"/>
        <Slider x:Name="SliderFontSize" Width="100" Minimum="6" Maximum="72" IsSnapToTickEnabled="True" TickFrequency="1"/>
        <StackPanel Orientation="Horizontal" Width="120">
            <TextBox x:Name="TextBoxSetFont" Width="30"/>
            <Button Content="Set FontSize" Width="80" Click="Button_Click"/>
        </StackPanel>
    </StackPanel>
</Window>
